#include <stdio.h>


int main()
{
	int n;
	scanf("%d",&n);
	int a,b;
	int i=0;
	int count=0;
	int arr[100]={0};
	while(scanf("%d %d",&a,&b)!=EOF)
	{
		arr[i]=a+b;
		i++;
		count++;
	}
	for(i=0;i<count;i++)
	{
		printf("%d\n",arr[i]);
	}
	return 0;
}